home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Light ROM 3
/
Light ROM 3 - Disc 2.iso
/
3dstudio
/
tools
/
gears
/
setrotky.k3d
< prev
Wrap
Text File
|
1995-02-23
|
2KB
|
49 lines
;---------------------------------------------------------------------
; SETROTKEY.K3D - December 23th 1994
; Rotation key interpolator by Arnoud van Delden
; Whizzart multimedia - avdelde@hvscg01.ns-nl.att.com
; For use in 3DStudio R4
;---------------------------------------------------------------------
;
; This script may be freely distributed, but may not be sold,
; rented, or leased without prior written consent of the author.
; It may not be modified from it's original "PKZIP" archive form or
; redistributed without the original sample GEARS.3DS file.
;
;---------------------------------------------------------------------
;
ChooseNode "Select object to interpolate", NT_OBJECT + NT_DUMMY
If RC < 1 Then Gfx_Continue "Script aborted!" : End
Orig$ = NodeName$
Start = 0
DoEvery = 2 :' May be changed by the user...
NumFrames :' Set the var. Time
DefRotate RotArray(Time)
;
; First calculate the keys...
;
For Frame = Start To Time step DoEvery
InterpolateKey Orig$, Frame, RotArray(Frame)
RotArray(Frame).easeTo = 0
RotArray(Frame).easeFrom = 0
RotArray(Frame).cont = 25
RotArray(Frame).tens = 25
RotArray(Frame).bias = 25
Next Frame
;
; Backward Recalculate Delta's...
;
For Frame = Start+DoEvery To Time step DoEvery
q = Time-Frame+DoEvery
RotArray(q).angle = RotArray(q).angle-RotArray(q-DoEvery).angle
Next Frame
;
; Now create the new keys...
;
For Frame = Start To Time step DoEvery
CreateKey Orig$, RotArray(Frame)
Next Frame
;
End